home *** CD-ROM | disk | FTP | other *** search
/ PC-SIG: World of Games / PC-SIG World of Games (CDRM1080710) (1993).iso / 922 / JEM.DOC < prev    next >
Text File  |  1980-01-01  |  24KB  |  559 lines

  1.  
  2.         
  3.         
  4.         
  5.         
  6.              
  7.         
  8.         
  9.         
  10.         
  11.         
  12.         
  13.         
  14.                                 JEM LOGO
  15.                   
  16.         
  17.         
  18.                                 VER 1.10 
  19.              
  20.         
  21.                 
  22.         
  23.         
  24.                                RELEASE # 2
  25.         
  26.         
  27.                   (c)Copyrighted  1987 by James Moriartey
  28.                             174 Garnet Crescent 
  29.                             Wetaskiwin Alberta
  30.                              Canada T9A-2S6
  31.         
  32.         
  33.  
  34.  
  35.                            Table Of Contents
  36.         
  37.         
  38.         
  39.      JEM LOGO Table of Contents (c)Copyright 1987 by James Moriartey
  40.     
  41.         
  42.              
  43.         
  44.         Disclaimer.................................1
  45.         Shareware Concept..........................1
  46.         Permission to Copy.......................1,2
  47.         Information for Teachers...................2
  48.         What Need to get Started...................3
  49.         Minimum System Needed......................3
  50.         List of Files..............................3
  51.         JEM overview...............................4
  52.         Primary Word List......................5,6,7
  53.         Variables..................................8
  54.         Explain to Turtle..........................9
  55.         Run Mode..................................10
  56.         end Command...............................11
  57.         Explain Overview.......................12,13
  58.         Limitations...............................14
  59.         Order Form................................15
  60.         
  61.             
  62.         
  63.                                                               page 1
  64.                            DISCLAIMER
  65.  
  66.                 
  67.                 This software will perform as described when used
  68.             properly. By using this software you acknowledge That this
  69.             software may not 
  70.        suit your particular needs or be completly completely trouble free
  71.        If this software does not perform as discribed, our liability to
  72.        you is limited to replacing the software or refunding the purchase
  73.        price if registered.
  74.         In no event will James Moriartey be liable to you for any
  75.        damages, including any lost profits, lost savings or other 
  76.        incidental or consequential damages arising out of the use or
  77.        inability to use this program , even if James Moriartey has been
  78.        advised of the possibility of such damages.
  79.         
  80.            
  81.                           The Shareware Concept
  82.         
  83.         JEM is distributed as user supported software, and you may freely
  84.        copy this program to use , you are in fact encouraged to make
  85.        copies for your friends. As long as the program is not modified in
  86.        any way and the copyright notice is not removed or tampered with.
  87.         And that all the files including this manual is copied also and
  88.        the manual is not modified or tampered with.
  89.          BBS operators may ARC the files for transmission as long as all
  90.        the files are sent in the library.
  91.          No one can make charge for JEM , except authorized users groups,
  92.        which may charge a cost based fee not to exceed $10.00.
  93.         
  94.                 
  95.         
  96.         
  97.                                                           page 2
  98.         
  99.         Teachers and other Educators
  100.         
  101.         Educators may make as many copies to use on site (in the same
  102.        building) for no charge if the first copy is a registered copy.
  103.         Any additional copies for use off site may be purchased at one
  104.        half the current price for JEM. And the following lines are given
  105.        to the user.
  106.         
  107.         
  108.                      This program is brought to you by
  109.                           James Moriartey 
  110.                          174 Garnet Crescent
  111.                       Wetaskiwn Alberta Canada
  112.                                T9A-2S6
  113.                      and " Educators Name "
  114.                      If you have any questions or comments    
  115.                      about JEM please write to the address
  116.                      above.
  117.         
  118.         Please address any comments or questions about JEM to the above
  119.        address even if you do not wish to register as JEM owner.
  120.                 
  121.         What you need to get going
  122.         
  123.         First make a copy of JEM-Logo to floppy disk. JEM will run under
  124.        PC-DOS 3.1 and MS-DOS 3.0 it should run under DOS 2.2 but it has
  125.        been tested in the 3.0 and higher DOS only. It will run on the IBM
  126.        XT,AT and all true Compatible computers. JEM needs 256K of memory
  127.        and a single 5 1/4 Floppy Drive. To use JEM on a Hard Drive create
  128.        a directory (MD JEM) and copy the disk to that directory. If you
  129.        have any problems look in your DOS manual.
  130.         JEM-LOGO must have two files to run they are JEM.COM and JEM.DAT
  131.        these files must be in the same Directory for JEM to work. 
  132.         JEM.COM is the main program JEM.DAT is a list of words that JEM
  133.        uses JEM.DAT is a ASCII file it may or may not contain some data.
  134.         
  135.         
  136.         
  137.         LIST of Files You Should Have
  138.         
  139.         JEM.COM                   The Program
  140.         JEM.DAT                   Data file used by JEM must be in the
  141.                                   same Directory as JEM.COM
  142.         JEM.DOC                   This Manual
  143.         Read.me                   File list and How to Start JEM 
  144.         
  145.  
  146.         
  147.                        A OVER VIEW OF JEM LOGO
  148.         
  149.         
  150.         Jem Logo was written to teach my children the basics of computer
  151.     programing. I have never seen any version of LOGO nor do I care to see
  152.     one. JEM is written in Turbo Pascal and the source code is not available
  153.     JEM has three basic modes they are Help Mode , Explain Mode and Run mode
  154.     the first mode you see is Run Mode when the Logo's are displayed and one
  155.     line says " Type in help for Help" if you type in this word you will
  156.     shown four pages of text these page give a brief description of the words
  157.     in the help file. JEM is a interpreter and runs at quite slow speeds
  158.     ,there are ways to make JEM run fast these commands will be explain
  159.     later.
  160.       JEM has two types of words they are Primary words and Secondary words.
  161.  
  162.     PRIMARY WORDS
  163.     
  164.      Primary words are the base of JEM all secondary words are created out of
  165.     primary words.Primary words are the simplest commands used by JEM
  166.     the most important words to the beginner are : help , end. The word
  167.     help displays the  help file the word end saves all the work done and
  168.     exits JEM LOGO.
  169.      Primary words can be entered in a short hand version the first three
  170.     characters must be entered. (Note JEM runs faster if only the first three
  171.     letters    are used of the Primary Words only).
  172.  
  173.     SECONDARY WORDS
  174.         
  175.         Secondary words are the way you program the turtle to do higher
  176.        functions they many be any combination of primary words and
  177.        secondary words the more levels of secondary words the slower the
  178.        response of the turtle all secondary words must be type in exactly
  179.        as created. Also a secondary word that is called the same as
  180.        primary word will be ignored and a secondary word with two
  181.        meanings the first found will be used the second will found will
  182.        be ignored. Care must be taken to ensure that two meanings do not
  183.        share the same word as JEM does not check for double meanings for
  184.        a word. Secondary words must be at least five characters or more
  185.        long otherwise the interpreter will not find them.
  186.  
  187.  
  188.        
  189.  
  190.  
  191.                         PRIMARY WORD LIST
  192.  
  193.         This list will explain each word in more detail and the syntax
  194.        and give the short hand word also.All words must be typed in
  195.        exactly in upper or lower case.
  196.  
  197.         WORD         Short hand          Explanation and Syntax
  198.  
  199.         upen         upe                 Lifts Pen up Turtle does not draw
  200.                                          a line  or leave a mark if pen is up
  201.                                          pen stays up
  202.  
  203.         dpen         dpe                 Puts pen down begins to draw or
  204.                                          leave a mark if pen is down pen
  205.                                          stays down.
  206.  
  207.         hide         hid                 Hide turtle from view turtle can
  208.                                          still perform all functions the
  209.                                          turtle itself is hidden.
  210.  
  211.         show         sho                 Display turtle (default setting)
  212.  
  213.         cs           cs                  Clear screen contains of screen are
  214.                                          gone. Turtle is sent to center of
  215.                                          screen.
  216.  
  217.         wrap         wra                 Screen wrap is on turtle will wrap
  218.                                          around the display (default setting)
  219.  
  220.         nwrp         nwr                 Sreen wrap is off turtle will not
  221.                                          wrap around display.
  222.      
  223.         med          med                 Medium Resolution graphics mode
  224.                                          preferred setting (default setting)
  225.  
  226.         Hi           Hi                  High Resolution graphics mode
  227.                                          not recommended.
  228.  
  229.         gh           gh                  Turtle goes to the center of the
  230.                                          screen no line is drawn.
  231.  
  232.         pse          pse                 Pause and wait for any key to be
  233.                                          pressed before doing next command.
  234.  
  235.  
  236.         1            1                   Use colour Palette Number 1
  237.  
  238.         2            2                   Use colour Palette Number 2
  239.  
  240.        Clr [x]       Clr [x]            Clr<space>[number]
  241.                                         Set pen colour between 0 and 3
  242.                                         colour depends on Palette Number
  243.  
  244.        forw [x]      for [x]             forw<space>[distance]
  245.                                          Turtle moves forward x spaces
  246.  
  247.        back [x]      bac [x]             back<space>[distance]
  248.                                          Turtle moves back x spaces
  249.  
  250.        turn [x]      tur [x]             turn<space>[compass degree]
  251.                                          Turtles turns to face degree on the
  252.                                          compass example turn [90] turtle
  253.                                          will turn to the 90 degrees of
  254.                                          home position.
  255.  
  256.        ltrn [x]       ltr [x]            ltrn<space>[angle]
  257.                                          Turtle turns at that angle from
  258.                                          current position. example ltrn [90]
  259.                                          will turn the turtle 90 degrees from
  260.                                          current position
  261.  
  262.        rtrn [x]       rtrn [x]           rtrn<space>[angle]
  263.                                          see ltrn turns to right
  264.  
  265.        again [x]      aga [x]            again<space>[number of times]
  266.                                          Do following word x number of times
  267.                                          example again [4] forw [1] would
  268.                                          move the turtle ahead five spaces.
  269.                                          again statement must precede the
  270.                                          statement you wish to again.
  271.                                          NESTED again statement are not
  272.                                          allowed Turtle does check for nested
  273.                                          again statements.
  274.  
  275.        
  276.        help           hel                Display help file contains of screen
  277.                                          are lost.
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.        B [x]         B [x]              Sets Background colour between 0-3
  285.                                         colour depends on Palette Number
  286.        
  287.        end           end                End JEM Logo save all secondary words
  288.                                         in file "JEM.DAT" and exit JEM Logo
  289.                                         if JEM.DAT is not found all secondary
  290.                                         words are lost.
  291.  
  292.  
  293.        Rept           Rep                Repeat following words until a "p" 
  294.                                          key is pressed and wait until a "s"
  295.                                          key is pressed then stop if the "s"
  296.                                          key is not pressed the continue the
  297.                                          repeat until a "p" key is pressed.
  298.         
  299.        off            off                Turns command line off it is no
  300.                                          longer displayed .
  301.  
  302.        Lineon         Lin                Turns command line on command line
  303.                                          is displayed
  304.  
  305.        secondaryword                     Do secondary word see explain
  306.  
  307.  
  308.        explain        exp                Enter explain to Turtle mode 
  309.                                          see explain mode and explain mode
  310.                                          commands.
  311.  
  312.  
  313.  
  314.                               Variables 
  315.  
  316.        JEM Logo allows the use of two variables only they are "var1" and 
  317.        "var2" they are numeric values only the only operations allowed on
  318.        them are addition and subtraction. 
  319.        The syntax for the variables is :
  320.         
  321.          s [var1=x]                         s<space>[var1=x]
  322.                                              Sets the value of the var1 to x
  323.                                             example s [var1=1] would set the
  324.                                             value of var1 to 1.
  325.         
  326.          s [var1+x]                         s<space>[var1+x]
  327.                                             Will add x to the value of
  328.                                             var1 and set the value of
  329.                                             var1 to var1+x.   example
  330.                                             current value of var1 is 2 so
  331.                                             s [var1+1] would set the
  332.                                             value of var1 to 3. x can be
  333.                                             any number.
  334.         
  335.          s [var1-x]                         s<space>[var1-x]
  336.                                             Will subtract x from the
  337.                                             value of var1 and set the
  338.                                             value of var1 to var1-x.
  339.                                             example current value of var1
  340.                                              is 4 so  s [var1-2] would set
  341.                                             the value of var1 to 2. x can
  342.                                             be any number
  343.         
  344.         The syntax for var2 is the same as it is for var1. Variables can
  345.        not perform operations on each other. The commands listed above
  346.        are the only commands that will be performed. Also each operation
  347.        can be preformed in any word , the value of the variable is passed
  348.        to the next word. See sample secondary words.
  349.         Variables are used to create spirals and other shapes
  350.        the uses of the variables are limited.
  351.         
  352.     
  353.                       EXPLAIN to Turtle Mode
  354.         
  355.         
  356.         
  357.         Explain turtle mode is the way you can add secondary words to the
  358.        turtles vocabulary.The explain mode has three main commands they
  359.        are show , forget and tell
  360.         
  361.                 show                      show will have turtle display
  362.                                           the show subfunctions they are
  363.                                           find and all. find will ask for
  364.                                           the word to find if the word
  365.                                           exists it will be shown. all
  366.                                           will display All the secondary
  367.                                              words in the JEM.DAT file all
  368.                                           the secondary words are in
  369.                                           memory for faster execution.
  370.                
  371.                 show                       all  will display all
  372.                                                 secondary words
  373.                 
  374.                 show                       word  will find and display a
  375.                                                  specific secondary word  
  376.         
  377.         
  378.                 forget                     will have turtle forget the
  379.                                             secondary word. If you do not
  380.                                            use the end command to exit
  381.                                            turtle the word will still be
  382.                                            in the JEM.DAT file to make
  383.                                            forget changes permanent use
  384.                                            the end  command to exit JEM
  385.                                            and save all changes.
  386.                  
  387.                            
  388.                
  389.                 tell                       tell turtle mode
  390.                                            when you enter tell command
  391.                                            turtle will let enter a
  392.                                             secondary word  example
  393.                                            "wordd =forwd [10] rtrn [90];" 
  394.                                            all words must be 5 or more
  395.                                            characters long 
  396.  
  397.         
  398.             
  399.  
  400.                              RUN MODE
  401.  
  402.  
  403.  
  404.         This is the normal mode of the turtle when you are in run mode
  405.        you will see the turtle in the center of the screen and the last
  406.        line of the screen you will see a 
  407.         ?                                             !
  408.         (Note command line is limited to 40 Chars input)
  409.         That is the command line all commands  are enter in the command
  410.        line. Enter a cs  command the turtle will clear the screen and 
  411.        home the turtle to the center of the screen. Enter a f [10] turtle
  412.        will move forward 10 spaces and leave a line from the start
  413.        position to the current position. Enter a r [90]  the turtle will
  414.        turn right 90 degrees. Enter a l [90]  the turtle will turn left
  415.        90 degrees.
  416.         If you enter a word the turtle does not know turtle will display
  417.        at the top of screen "I do not know the word 'xxxxx'" if you see
  418.        this line its means turtle did not find the word and can not do
  419.        that word check to see if the word  was misspelled or in fact does
  420.        exists in the secondary word file.
  421.         
  422.         Repeat Command    
  423.         Using the R command the Repeat command will make turtle perform
  424.        much faster. Repeat command will repeat all words after the R
  425.        until a "p" key is struck if the "p" key is struck repeat will
  426.        halt and wait until any other key is struck or the "s" key is
  427.        struck if the "s" key is struck the repeat will stop and the
  428.        turtle will return to run mode. The R command can be used in the
  429.        run mode on any word or it can be part of a secondary word.  
  430.         
  431.         
  432.         
  433.         Using the end command the end command exits JEM and saves all
  434.        secondary words into the file named JEM.DAT if you exit JEM
  435.        without using the end command any new secondary words are lost and
  436.        are not saved to the JEM.DAT file. If you create new secondary
  437.        words and you wish to save them use the end command. To create a
  438.        new JEM.DAT file simplify use the DOS copy con command leave one
  439.        blank line close the file with a F6. 
  440.                                       example copy con Jem.dat
  441.                                               blank line
  442.                                               ^z
  443.         
  444.         JEM can use only one data file at one time,the whole file is
  445.        entered in memory the reasoning behind this is to increase JEM
  446.        logo's speed of operation.
  447.         
  448.         Getting JEM to run faster to make JEM run at the fastest posible
  449.        speed use three characters or less for the primary words secondary
  450.        words can not be abbreviated nor can var1 or var2. An example of
  451.        the speed increase is enter a explain  command turtle will enter
  452.        explain mode hit the enter key turtle will return to the run mode
  453.        now enter exp turtle will enter explain mode much faster. The
  454.        speed increase is because of the way the interpreter checks each
  455.        word. When entering a secondary word using the shorthand word is
  456.        best way to get JEM to run at top speed.
  457.         
  458.          Try each primary word to see what its function is and purpose
  459.        is. 
  460.          When JEM enters run mode the turtle is set to pen down, wrap on
  461.        ,lineon , med and gohome. 
  462.  
  463.         
  464.                        EXPLAIN MODE
  465.         
  466.         Explain mode is  the most powerful part of JEM explain lets the
  467.        user create their only words or commands. In run mode the entry of
  468.        a secondary word causes the turtle to perform the commands within
  469.        the secondary word. A secondary word can be a number of primary
  470.        words or number of secondary words or a combination of primary
  471.        words and secondary words. They may be in any order the in the
  472.        word itself but any secondary words must be previously defined in
  473.        the word list. To enter a secondary word in run mode just type in
  474.        the word and turtle will perform that definition as it would a
  475.        primary word.
  476.         Explain mode has three main subfunctions they are tell , show and
  477.        forget.
  478.         We will begin with the show command while in run mode enter the
  479.        command exp or explain. Turtle will enter explain mode you will
  480.        now see the line asking for one of the subfunctions.
  481.         Type in  show  turtle will now ask for the secondary word to find
  482.        or all. Enter the word all turtle will display all secondary words
  483.        currently defined. To display a current defined secondary word
  484.        type in the word exactly as it is (caps and lowercase) JEM will
  485.        then display the word and it definition.
  486.         The  forget command is used to remove secondary words from the
  487.        word list. In run mode enter exp or explain now in explain mode
  488.        enter the forget  command turtle will ask for a string enter in
  489.        the word you wish turtle to forget. Turtle will now not remember
  490.        that word to make the changes permanent while in run mode enter a
  491.        end  command. Turtle will rewrite the data file and the changes to
  492.        the secondary word list will be saved.
  493.  
  494.         
  495.         
  496.         
  497.         
  498.         The tell command is used to define a secondary word all secondary
  499.         words must be five characters or longer. In run mode enter a exp
  500.         or explain command then enter tell command turtle will now enter
  501.        a edit mode. Enter the name of the word you wish to used followed
  502.        by a "=" then the definition.
  503.         Example :
  504.         
  505.                 <space>wordd=<space>definition<;>
  506.         
  507.                 wordd= f [10] r [90] ;
  508.         
  509.         This word after it is entered will now be a word turtle 'knows'
  510.         and can be used in the same way as you would use a primary word.
  511.          Return to run mode and enter the word "wordd" turtle will now
  512.        move forward ten spaces and turns 90 degrees to the right.
  513.         
  514.        Error Codes
  515.          There is only one (1) error code it is "I do not known the word
  516.        xx " . JEM will display this code if a word it can not find is
  517.        encountered. Check to see if the word is misspelled or in fact
  518.        does exist.
  519.  
  520.         
  521.         
  522.        Limitations of JEM-LOGO
  523.         
  524.         The two biggest limitations of JEM are the number of data files
  525.         allowed currently one (1). And the size of the data file that is
  526.        about 48 K. JEM-Logo was made for the ages of about 5 years to 10
  527.        years old it is not meant to be all things to all people. My
  528.        daughter enjoys the program very much and my friends children also
  529.        enjoy the program.If the program is teaching the idea of
  530.        programming that is good. But its main purpose is to break down
  531.        any apprehension of computers I think young or old alike will get
  532.        some enjoyment of ordering the Turtle around the screen.
  533.          Also the HiRes mode of the turtle does not create true geometric
  534.        shapes. Try the word "shapes" it was created by my 6 year old.
  535.  
  536.         
  537.         
  538.         Order Form
  539.         
  540.         
  541.             Please rush Me my Registered copy of JEM    
  542.         
  543.              Last Name_______________________________
  544.         
  545.             First Name______________________________    
  546.            
  547.             Mailing Address_________________________
  548.         
  549.             City/State/Prov_________________________
  550.           
  551.             Zip/PosalCode___________________________
  552.           
  553.             Enclosed is the donation of Twenty dollars ($20.00)
  554.         
  555.               Mr. James Moriartey
  556.               174 Garnet Crescent
  557.               Wetaskiwin Alberta
  558.               Canada T9A-2S6
  559.